<div class="breadcrumb">
    <div class="block-section clearfix">
        <div class="pull-left">
            <h2><?php $text = ($this->actionName == 'add') ? 'USER_CREATE' : 'USER_EDIT'; echo $this->translate($text); ?></h2>
        </div>
    </div>
    <div class="form-horizontal well">
        <form method="post" enctype="multipart/form-data" action="">
            <?php echo $this->form->getElement('username')->render() ?>
            <?php echo $this->form->getElement('email')->render() ?>
            <?php echo $this->form->getElement('firstname')->render() ?>
            <?php echo $this->form->getElement('lastname')->render() ?>
            <?php echo $this->form->getElement('file')->render() ?>
            <?php if($this->actionName == 'edit') echo $this->form->getElement('image')->render() ?>
            <?php echo $this->form->getElement('gender')->render() ?>
            <?php echo $this->form->getElement('dob')->render() ?>
            <?php echo $this->form->getElement('published')->render() ?>
            <div class="form-actions">
                <button class="btn btn-primary" type="submit"><?php echo $this->translate('BTN_SAVE_CHANGES'); ?></button>
                <a href="<?php echo $this->url(array('module' => $this->moduleName, 'controller' => $this->controllerName, 'action' => 'cancel'), 'default', true); ?>" class="btn"><?php echo $this->translate('BTN_CANCEL'); ?></a>
            </div>
            <?php echo $this->form->getElement('id')->render() ?>
            <?php echo $this->form->getElement('csrf_token')->render() ?>
        </form>
    </div>
</div>